package org.elec.mac.service;


import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import org.elec.mac.mapper.SMachineTechMapper;
import org.elec.mac.entity.SMachineTech;

import java.util.List;
import java.util.Map;

/**
 * @Description:实现类
 * @author 
 * @version 1.0
 * @created 
 */
@Service
public class SMachineTechService extends BaseService<SMachineTech,SMachineTechMapper> implements InitializingBean {

	@Autowired
	private SMachineTechMapper sMachineTechMapper;
	
	public void afterPropertiesSet() throws Exception {
		this.setBaseMapper(sMachineTechMapper);
	}
	/**
	 *关联查询
	 * @param param
	 * @return
	 */
	public List<Map<String, Object>> getMachineTechList(Map<String, Object> param) {
		return sMachineTechMapper.getMachineTechList(param);
	}

	/**
	 *
	 * @param list
	 */
	public void insertMachineTechBatch(List<SMachineTech> list) {
		sMachineTechMapper.insertMachineTechBatch(list);
	}

	/**
	 *
	 * @param param
	 * @return
	 */
	public int deleteMachineTech(Map<String, Object> param) {
		return sMachineTechMapper.deleteMachineTech(param);
	}
}
